#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void paixu(int* p, int n)
{
	n = n - 1;
	for (int i = 0; i < n; i++)
	{
		if (p[i] % 2 == 1)
			continue;
		else
		{
			int sz = p[i];
			p[i] = p[n];
			p[n] = sz;
			n--;i--;
		}
	}
}

int main()
{
	int arr[] = {1,2,3,4,5,6,7,8,9};
	int n = sizeof(arr) / sizeof(arr[0]);
	paixu(arr, n);
	for (int i = 0; i < n; i++)
		printf("%d ", arr[i]);
	return 0;
}